package com.goethe.translator;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;

public class MainMenu extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main_menu);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main_menu, menu);
        return true;
    }
    
    // Called when the user clicks the "Traductor" button
    public void intentTranslator(View view) {
    	Intent myIntent = new Intent(getBaseContext(), Translator.class);
    	startActivity(myIntent);
    }
    
    // Called when the user clicks the "DieDerDas" button
    public void intentDieDerDas(View view) {
    	Intent myIntent = new Intent(getBaseContext(), DieDerDas.class);
    	startActivity(myIntent);
    }
    
    // Called when the user clicks the "Actualizar" button
    public void intentUpdateDB(View view) {
    	Intent myIntent = new Intent(getBaseContext(), UpdateDB.class);
    	startActivity(myIntent);
    }
}
